//
//  DatabaseTool.h
//  OrderDish
//
//  Created by MAX on 15-6-15.
//  Copyright (c) 2015年 MAX. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <FMDatabase.h>
@class Dish;

@interface DatabaseTool : NSObject

    //初始化数据库
+(BOOL)openDataBase;
+(void)createTable;
+(void)insertDataWithAccount:(NSString *)account
                 loginTimes :(NSString *)loginTimes
                    signDays:(NSString *)signDays
                    headIcon:(NSString *)headIcon
                     company:(NSString *)company
                         sex:(NSString *)sex
                   loginDays:(NSString *)loginDays
                   cellphone:(NSString *)cellphone
                        icon:(NSString *)icon
                lastSignTime:(NSString *)lastSignTime
                     balance:(NSString *)balance
                        name:(NSString *)name
                        type:(NSString *)type
                  identifier:(NSString *)identifier
                       birth:(NSString *)birth
                       level:(NSString *)level
                        mood:(NSString *)mood
                       email:(NSString *)email
                     remarks:(NSString *)remarks
                    thirdType:(NSString *)thirdType
                     address:(NSString *)address
                    integral:(NSString *)integral;
+(void)TableDelete;
+(NSMutableArray *)searchTable;
+(void)updateMassage:(NSString *)Massage  info:(NSString *)info;

@end









